package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Attractions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttractionsMapper extends BaseMapper<Attractions> {

    List<Attractions> selectAllAttractions(@Param("name")String name,
                                           @Param("start")Integer start,
                                           @Param("pageSize")Integer pageSize);//条件+分页查询

    int count(@Param("name")String name);//条件查询总条数

    Integer updateAttractions2(@Param("attractions") Attractions attractions);

    Integer updateAttractions(@Param("attractions") Attractions attractions);

    Attractions getAttractionsById(@Param("id") Integer id);
}
